package router

import (
	ctrl "a-admin/web/controller"

	"github.com/gofiber/fiber/v2"
)

func InitAppApiRoutes(r fiber.Router) {
	server := ctrl.NewAppApiController()
	rg := r.Group("/app")
	{
		rg.Post("/login", server.Login)
		rg.Get("/captchaImage", server.CaptchaImage)
		rg.Post("/logout", server.LoginOut)

		rg.Get("/captchaVerify", server.CaptchaVerify)
		rg.Get("/getEmailCode", server.GetEmailCode)
		rg.Get("/emailCodeVerify", server.EmailCodeVerify)
		rg.Post("/register", server.Register)

		rg.Post("/refreshToken", server.RefreshToken)
		rg.Get("/getInfo", server.GetInfo)

		// rg.Get("/app/getRegionList", server.GetRegionList)
		// rg.Get("/app/getDeviceList", server.GetDeviceList)

		// rg.Post("/app/getRechargeConfig", server.GetRechargeConfig)
		// rg.Post("/app/createRecharge", server.CreateRecharge)
		// rg.Post("/app/createCharging", server.CreateCharging)
		// rg.Post("/app/payment", server.CreateCharging)

		// rg.Get("/app/getChargingConfig/:id", server.GetChargingConfig)
	}
}
